import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import { 
  Button,
  Field,
  Form,
  CellGroup,
  NavBar,
  Image as VanImage,
  Dialog,
  Toast,
  Picker,
  Popup
} from 'vant'
import 'vant/lib/index.css'

const app = createApp(App)

// 注册 Vant 组件
const vantComponents = [
  Button,
  Field,
  Form,
  CellGroup,
  NavBar,
  VanImage,
  Dialog,
  Toast,
  Picker,
  Popup
]

vantComponents.forEach(component => {
  app.use(component)
})

app.use(router)
app.mount('#app')
